package com.maiji.cloud.mapper;

import com.maiji.cloud.entities.shopingmall.ShopingCart;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.maiji.cloud.response.shopingmall.ShopingCartResData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface ShopingCartMapper extends BaseMapper<ShopingCart> {

	/**
	 * 根据订单id获得购物记录
	 * @param orderId
	 * @return
	 */
	List<ShopingCartResData> selectListByOrderId(@Param("orderId") String orderId);
	/**
	 * 
	 * @param ids
	 * @param status
	 */
	void updateStatusByIds(@Param("ids")List<String> ids,@Param("status")Integer status);

	List<ShopingCartResData> selectListBatchIds(@Param("shopingCartIds") List<String> shopingCartIds);

}
